import tkinter as tk
import webbrowser
from tkinter import messagebox


window = tk.Tk()

window.title("被Java蹂躏的岁月")
window.iconbitmap(".\\logo.ico")
window.geometry('500x760')
chat_content = tk.Frame(window, bg='Silver', bd=1, width=500,height=600)
chat_content.pack()

l = tk.Label(window, text='Python 图形界面不香吗', bg='green', font=('Arial', 12), width=30, height=2)
# l.pack()

send_content = tk.Entry(window, bg='white', width=300)
send_content.pack()

def get_send_content():
    content = send_content.get()
    messagebox.showinfo( "Hello", content)
    send_content.select_clear()

btn_send = tk.Button(window, text='发送(s)', bg='#0066FF', fg="white", command=get_send_content)
btn_send.pack()

window.mainloop()